{template 'public/header'}
{template 'public/comhead'}
<link rel="stylesheet" type="text/css" href="../addons/zh_gjhdbm/template/public/ygcsslist.css">
<style type="text/css">
  .actiul>.clearfix{border-bottom: 1px solid #e4e7e9;position: relative;padding: 10px 0;}
  .actiul .clearfix .li-box{display: inline-block;}
  .text-right{text-align: right;top: 30px;right: 15px;}
  .chebox{float: left;margin-right: 20px;margin-top: 45px;}
  .actimg{float: left;}
  .actimg>img{width: 160px;height: 120px;border-radius: 3px;}
  .actibox{font-size: 12px;margin-left: 16px;float: left;position: relative;}
  .actiname{color: #009688;max-width: 480px;min-width: 20px;overflow: hidden;text-overflow: ellipsis;white-space: normal;font-size: 16px;margin: 6px 0;}
  .actiname>a:hover{color: #333;}
  .actime{color: #999;font-size: 12px;line-height: 2.3em;}
  .actime>span:nth-child(2){margin-left: 32px;}
  .actime>span:nth-child(3){margin-left: 32px;}
  .actixin{font-size: 12px;line-height: 2.3em;color: #333;}
  .actixin>.actixinli{margin-right: 20px;}
  .actiguan{height: 30px;line-height: 30px;margin-top: 5px;font-size: 14px;}
  .actiguan>a{border-left: 1px solid #ddd;padding: 0 10px;color: #333;}
  .actiguan a .fa{color: #00BCD4;line-height: 18px;font-size: 20px;}
  .actiguan a span{display: inline-block;}
  .actiguan a .fa{margin-right: 4px;}
</style>
<script type="text/javascript" src="{$_W['siteroot']}/web/resource/webuploader-0.1.5/dist/jquery-1.11.1.min.js"></script>

<ul class="nav nav-tabs">
  <span class="ygxian"></span>
  <div class="ygdangq">当前位置:</div>
    <li class="active"><a href="{php echo $this->createWebUrl('deal')}">交警管理</a></li>
</ul>

<div class="main">
  <div class="panel panel-default">
    <div class="panel-heading">交警管理</div>
        <div class="panel-body" style="padding: 0px 15px;">
            <div class="row">
                <table class="yg5_tabel col-md-12">
                  <tr class="yg5_tr1">
                      <td>编号</td>
                      <td class="store_td1">名字</td>
                      <td>电话</td>
                      <td>警号</td>
                      <td>操作</td>
                  </tr>
                 {loop $list $key $item}
                  <tr class="yg5_tr2">
                      <td>{$item['id']}</td>
                      <td class="store_td1">{$item['user_name']}</td>
                      <td>{$item['link_tel']}</td>
                      <td>{$item['police_num']}</td>
                      <td>
                          {if $item['is_police']==2}
                           <a class="storespan btn btn-xs" href="{php echo $this->createWebUrl('deal', array('id' => $item['id'],'status'=>1,'op'=>'check'))}" onclick="return confirm('确认操作吗？');return false;">
                               <span class="fa">同意</span>
                               <span class="bianji">同意<span class="aritemdown"></span></span>
                           </a>
                          <a class="storespan btn btn-xs" href="{php echo $this->createWebUrl('deal', array('id' => $item['id'],'status'=>3,'op'=>'check'))}" onclick="return confirm('确认操作吗？');return false;">
                              <span class="fa">拒绝</span>
                              <span class="bianji">拒绝<span class="aritemdown"></span></span>
                          </a>
                          {/if}
                          <a href="{php echo $this->createWebUrl('adddeal', array('id' => $item['id']))}" class="storespan btn btn-xs">
                            <span class="fa fa-pencil"></span>
                            <span class="bianji">编辑<span class="aritemdown"></span></span>
                          </a>
                          <a class="storespan btn btn-xs" href="{php echo $this->createWebUrl('deal', array('id' => $item['id'],'op'=>'delete'))}" onclick="return confirm('确认删除吗？');return false;">
                            <span class="fa fa-trash-o"></span>
                            <span class="bianji">删除<span class="aritemdown"></span></span>
                          </a>
                      </td>
                  </tr>
            {/loop}
            {if empty($list)}
                <tr class="yg5_tr2">
                  <td colspan="9">
                    暂无交警
                  </td>
                </tr>
            {/if}
          </table>
            </div>
        </div>
    </div>
</div>
<div class="text-right we7-margin-top">{$pager}</div>
<script>
    $(function() {
        $("#frame-18").show();
        $("#yframe-18").addClass("wyactive");
    })
</script>